Xbasic

BROWSE.SELECTED_RECORDS Function

Syntax

Record_List as C = .Selected_Records([L parent_only|C tablename])

Arguments

parent_only|C

Determines which records to select, in the context of a set.

.T. = Return only records from the primary table.
.F. = Return records from all tables.
Table_Name

The name of a table.

Description

.SELECTED_RECORDS()returns the record numbers of selected records.

The following example shows the results when the browse is looking at a set composed of five different tables.

dim ptr as P
ptr = browse.view("Invoice")
? ptr.Selected_Records()
= 1 55 1 31 5
1 55 2 9 2
1 55 3 59 6
1 55 4 34 4
1 55 100 103 2
2 6 5 37 2
2 6 6 10 1
3 4 7 19 3
3 4 8 34 4
3 4 9 5 6
3 4 107 112 6
3 4 109 6 4
4 5 10 6 4

Now, restrict the query to just the parent table in the set.

dim ptr as P
ptr = browse.view("Invoice")
? ptr.Selected_Records(.t.)
= 1
2
3
4

Limitations

Desktop applications only.

See Also